//
//  WJSquareCell.m
//  BeDeJie
//
//  Created by jerry on 2017/1/29.
//  Copyright © 2017年 jerry. All rights reserved.
//

#import "WJSquareCell.h"
#import <UIImageView+WebCache.h>

@interface WJSquareCell()
@property (weak, nonatomic) IBOutlet UIImageView *iconView;
@property (weak, nonatomic) IBOutlet UILabel *nameView;

@end

@implementation WJSquareCell

- (void)awakeFromNib {
    [super awakeFromNib];
    // Initialization code
}

-(void)setItem:(WJSquareItem *)item {
    _item = item;

    [_iconView sd_setImageWithURL:[NSURL URLWithString:item.icon]];
    _nameView.text = item.name;
}

@end
